package Mapper;

import Entity.Workorder;
import java.util.List;

public interface WorkorderMapper {
    int insert(Workorder workorder);
    int deleteById(Integer id);
    int update(Workorder workorder);
    Workorder selectById(Integer id);
    List<Workorder> selectAll();
    List<Workorder> selectByCustomerId(Integer customerId);
    List<Workorder> selectByBusinessId(Integer businessId);
    List<Workorder> selectByCreatorId(Integer creatorId);
    List<Workorder> selectByHandlerId(Integer handlerId);
    List<Workorder> selectByStatus(Integer status);
    List<Workorder> selectRecentOrders(Integer days);
}